/**
 * 
 */
package com.ninjascript.tanooki;

import java.io.File;

/**
 * @author Scott
 *
 */
public class MarshallerFactory {
	
	protected static MarshallerFactory instance = null;
	
	protected MarshallerFactory() {
		
	}
	
	public static MarshallerFactory getInstance() {
		if (instance == null) {
			instance = new MarshallerFactory();
		}
		return instance;
	}
	
	public Marshaller createMarshallerFor(File file) throws Exception {		
		Marshaller marshaller;
		marshaller = new CsvMarshaller(file);
		return marshaller;		
	}

}
